<template>
  <ul class="todo-main">
    <MyItem v-for="todoObj in todos" :key="todoObj.id" :todo="todoObj" />
  </ul>
</template>

<script>
  import MyItem from "./MyItem"

  export default {
    name: "MyList",
    components: {
      MyItem
    },
    props:['todos']
  }
</script>

<style>
  .todo-main {
    border: 1px solid #ddd;
    border-radius: 6px;
  }
</style>